home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / tde210.zip / CRITERR.H < prev    next >
Text File  |  1992-11-13  |  6KB  |  200 lines

  1. /*
  2.  * Most of this info is regurgitated stuff from IBM and Microsoft Technical
  3.  * Reference manuals and the Microsoft Knowledge Base.
  4.  *
  5.  * New editor name:  TDE, the Thomson-Davis Editor.
  6.  * Author:           Frank Davis
  7.  * Date:             April 1, 1992
  8.  *
  9.  * This program is released into the public domain, Frank Davis.
  10.  *   You may distribute it freely.
  11.  */
  12.  
  13. char *criterr_screen[] = {
  14. "┌───────────────────────────────────────────────────────────────────┐",
  15. "│                  tde critical error handler                       │",
  16. "│                                                                   │",
  17. "│    Error code:                                                    │",
  18. "│     Operation:                                                    │",
  19. "│         Drive:                                                    │",
  20. "│ Extended Code:                                                    │",
  21. "│   Error Class:                                                    │",
  22. "│         Locus:                                                    │",
  23. "│   Device Type:                                                    │",
  24. "│   Device Name:                                                    │",
  25. "│                                                                   │",
  26. "│            Please enter action:  (Q)uit or (R)etry?               │",
  27. "│                                                                   │",
  28. "└───────────────────────────────────────────────────────────────────┘",
  29. NULL
  30. };
  31.  
  32.  
  33. /*
  34.  * codes from register di
  35.  */
  36. char *error_code[] = {
  37.    "Attempt to write on write-protected disk",    /* 0 */
  38.    "Unknown unit",
  39.    "Drive not ready",
  40.    "Unknown command",
  41.    "Data error (CRC)",
  42.    "Bad drive request structure length",          /* 5 */
  43.    "Seek error",
  44.    "Unknown media type",
  45.    "Sector not found",
  46.    "Printer out of paper",
  47.    "Write fault",                                 /* 10 */
  48.    "Read fault",
  49.    "General failure"
  50. };
  51.  
  52.  
  53. /*
  54.  * from bit 0 of ah
  55.  */
  56. char *operation[] = {
  57.    "Read",
  58.    "Write"
  59. };
  60.  
  61.  
  62. /*
  63.  * extended error, error class, register bh.
  64.  */
  65. char *error_class[] = {
  66.    "Unknown",
  67.    "Out of Resource:  space, channels, etc...",         /* 1 */
  68.    "Temporary Situation:  expected to end",
  69.    "Authorization: permission problem",
  70.    "Internal: error in system software",
  71.    "Hardware Failure:  not the fault of tde",           /* 5 */
  72.    "System Failure:  system software",
  73.    "Application Program Error",
  74.    "Not Found:  file/item not found",
  75.    "Bad Format:  invalid format, type",
  76.    "Locked:  file/item locked",                         /* 10 */
  77.    "Media:  wrong disk, bad spot, etc...",
  78.    "Already Exists:  collision with existing",
  79.    "Unknown"
  80. };
  81.  
  82.  
  83. /*
  84.  * extended error, locus, register ch
  85.  */
  86. char *locus[] = {
  87.    "Unknown",
  88.    "Unknown",
  89.    "Block Device: disk, etc...",
  90.    "Network",
  91.    "Serial Device:  keyboard, printer, plotter, modem",
  92.    "Memory:  random access memory"
  93. };
  94.  
  95.  
  96. /*
  97.  * bit 7 of ah and device header when needed.
  98.  */
  99. char *device_type[] = {
  100.    "Block",
  101.    "Character"
  102. };
  103.  
  104.  
  105. /*
  106.  * In int24.asm, check for errors greater than 88.  Set any extended error
  107.  *   code above 88 to 0.
  108.  */
  109. char *ext_err[] = {
  110.    "Frank has no idea what this error is",              /* 0 */
  111.    "Function number invalid",
  112.    "File not found",
  113.    "Path not found",
  114.    "Too many open files (no handles left)",
  115.    "Access denied",
  116.    "Handle invalid",
  117.    "Memory control blocks destroyed",
  118.    "Insufficient memory",
  119.    "Memory block address invalid",
  120.    "Environment invalid",                               /* 10 */
  121.    "Format invalid",
  122.    "Access code invalid",
  123.    "Data invalid",
  124.    "Unknown unit",
  125.    "Invalid drive was specified",
  126.    "Attempt to remove current directory",
  127.    "Not same device",
  128.    "No more files",
  129.    "Attempt to write on write-protected disk",
  130.    "Unknown unit",                                      /* 20 */
  131.    "Drive not ready",
  132.    "Unknown command",
  133.    "Data error (CRC)",
  134.    "Bad request structure length",
  135.    "Seek error",
  136.    "Unknown media type",
  137.    "Sector not found",
  138.    "Printer out of paper",
  139.    "Write fault",
  140.    "Read fault",                                        /* 30 */
  141.    "General failure",
  142.    "Sharing violation",
  143.    "File-lock voilation",
  144.    "Invalid disk change",
  145.    "FCB unavailable",
  146.    "Sharing buffer overflow",
  147.    "37",
  148.    "38",
  149.    "39",
  150.    "40",
  151.    "41",
  152.    "42",
  153.    "43",
  154.    "44",
  155.    "45",
  156.    "46",
  157.    "47",
  158.    "48",
  159.    "49",
  160.    "Unsupported network request",
  161.    "Remote machine not listening",
  162.    "Duplicate name on network",
  163.    "Network name not found",
  164.    "Network busy",
  165.    "Device no longer exists on network",
  166.    "NetBIOS command limit exceeded",
  167.    "Network adapter hardware failure",
  168.    "Incorrect response from network",
  169.    "Unexpected network error",
  170.    "Incompatible remote adapter",                       /* 60 */
  171.    "Print queue full",
  172.    "Not enough room for print file",
  173.    "Print file was deleted",
  174.    "Network name deleted",
  175.    "Network access denied",
  176.    "Incorrect network device type",
  177.    "Network name not found",
  178.    "Network name limit exceeded",
  179.    "Net BIOS session limit exceeded",
  180.    "Temporarily paused",                                /* 70 */
  181.    "Network request not accepted",
  182.    "Print or disk redirection is paused",
  183.    "73",
  184.    "74",
  185.    "75",
  186.    "76",
  187.    "77",
  188.    "78",
  189.    "79",
  190.    "File already exists",                               /* 80 */
  191.    "Reserved",
  192.    "Cannot make directory entry",
  193.    "Fail on INT 24",
  194.    "Too many redirections",
  195.    "Duplicate redirection",
  196.    "Invalid password",
  197.    "Invalid parameter",
  198.    "Network device fault"                               /* 88 */
  199. };
  200.